home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '93 / Papers '93 / Macintosh as Internet Server ƒ / inetd / talkd / talkd.h < prev    next >
Encoding:
Text File  |  1993-03-17  |  879 b   |  33 lines  |  [TEXT/MPS ]

  1. //---------------------------------------------------------------------
  2. //
  3. //    Copyright © 1992 David Peterson.
  4. //    All rights reserved.
  5. //
  6. //    Permission to use, copy, modify, and distribute this software for
  7. //    any purpose and without fee is hereby granted, provided that the
  8. //    above copyright notice appear in all copies and that both that
  9. //    copyright notice and this permission notice appear in supporting
  10. //    documentation.
  11. //
  12. //---------------------------------------------------------------------
  13.  
  14. #ifndef __DAEMONAPP__
  15. #include <DaemonApp.h>
  16. #endif
  17. #ifndef __MACTCPCOMMONTYPES__
  18. #include <MacTCPCommonTypes.h>
  19. #endif
  20.  
  21. class TalkD : public DaemonApp {
  22. typedef DaemonApp Inherited;
  23. public:
  24.     virtual void    InstallAEHandlers();
  25.     
  26.     void            HandleNewStream(StreamPtr stream);
  27. };
  28.  
  29. extern "C" {
  30.     pascal OSErr    AEStreamHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  31. }
  32.  
  33.